/**
 * 
 * @param {String} types 
 * @param {String} type
 * @returns {Boolean}
 */
function checkType(types, type) {
    if (!Object.keys(types).includes(type.toUpperCase()))
        throw new Error(`Type ${type} not found`)
}
export default checkType